<?php /* Smarty version 2.6.22, created on 2012-05-17 15:21:45
         compiled from objPopupMessage.js */ ?>

<div id="objPopupMsg" class="divPopupObject" style="display: none;">	
	<div id="objPopupMsgBox" class="">
		<div id="objPopupMsgHeader" class="" style=""> 
			Operazione Eseguita!
		</div>
		<p id="objPopupMsgContent" class="" style=""> 
			Operazione Eseguita!
		</p>
		<div style="height:40px;"> 
			<input type="button" id="objPopupMsgButton2" class="" onClick="" value="" />	
			&nbsp;&nbsp;
			<input type="button" id="objPopupMsgButton" class="" onClick="closePopupObj()" value="Chiudi" /> 
		</div>
	</div>
	
</div>	


<script type="text/javascript">
/* <![CDATA[ */

<?php echo '
var objMsgDiv = document.getElementById(\'objPopupMsg\');
var objMsgButton = document.getElementById(\'objPopupMsgButton\');
var objMsgButton2 = document.getElementById(\'objPopupMsgButton2\');
var objMsgBox = document.getElementById(\'objPopupMsgBox\');
var objMsgHeader = document.getElementById(\'objPopupMsgHeader\');
var objMsgContent = document.getElementById(\'objPopupMsgContent\');

function objPopupMessage( id )
{	
// 	var usrMessageDsc = "";
// 	var usrMessageTitle = "";
// 	
// 	var usrMessageLabelJS = "";
// 	var usrMessageFuncJS = "";
// 	
// 	var usrMessageLabelJS2 = "";
// 	var usrMessageFuncJS2 = "";
	
	this.info = function( )
	{
		objMsgHeader.innerHTML = "Operazione Eseguita!";
		objMsgButton.setAttribute(\'class\', \'objMsgButtonInfo objMsgButtonPopup objMsgRadiusButton objMsgShadowButtonGreen objMsgEffectImage objMsgShadowTextGreen\' );
		objMsgButton2.setAttribute(\'class\', \'objMsgButtonInfo objMsgButtonPopup objMsgRadiusButton objMsgShadowButtonGreen objMsgEffectImage objMsgShadowTextGreen\' );
		objMsgBox.setAttribute(\'class\', \'objMsgPopupBoxInfo divPopupObjectBox objMsgShadowDiv objMsgRadiusTable \' );
		objMsgHeader.setAttribute(\'class\', \'objMsgPopupHeaderInfo objMsgShadowTextGrey objMsgRightTopRadiusDiv objMsgLeftTopRadiusDiv\' );
		objMsgContent.setAttribute(\'class\', \'objMsgPopupContent objMsgShadowTextGrey\' );
		
		this.setValueObjMsg();
	}
	
	this.warning = function( )
	{
// 		alert(usrMessageLabelJS2);
		
		objMsgHeader.innerHTML = "Attenzione!";
		objMsgButton.setAttribute(\'class\', \'objMsgButtonWarning objMsgButtonPopup objMsgRadiusButton objMsgShadowButtonYellow objMsgEffectImage objMsgShadowTextYellow\' );
		objMsgButton2.setAttribute(\'class\', \'objMsgButtonWarning objMsgButtonPopup objMsgRadiusButton objMsgShadowButtonYellow objMsgEffectImage objMsgShadowTextYellow\' );
		objMsgBox.setAttribute(\'class\', \'objMsgPopupBoxWarning divPopupObjectBox objMsgShadowDiv objMsgRadiusTable \' );
		objMsgHeader.setAttribute(\'class\', \'objMsgPopupHeaderWarning objMsgShadowTextGrey objMsgRightTopRadiusDiv objMsgLeftTopRadiusDiv\' );
		objMsgContent.setAttribute(\'class\', \'objMsgPopupContent objMsgShadowTextGrey\' );
		
		this.setValueObjMsg();
	}
	
	this.error = function( )
	{
		objMsgHeader.innerHTML = "Errore!";
		objMsgButton.setAttribute(\'class\', \'objMsgButtonError objMsgButtonPopup objMsgRadiusButton objMsgShadowButtonRed objMsgEffectImage objMsgShadowTextRed\' );
		objMsgButton2.setAttribute(\'class\', \'objMsgButtonError objMsgButtonPopup objMsgRadiusButton objMsgShadowButtonRed objMsgEffectImage objMsgShadowTextRed\' );
		objMsgBox.setAttribute(\'class\', \'objMsgPopupBoxError divPopupObjectBox objMsgShadowDiv objMsgRadiusTable \' );
		objMsgHeader.setAttribute(\'class\', \'objMsgPopupHeaderError objMsgShadowTextGrey objMsgRightTopRadiusDiv objMsgLeftTopRadiusDiv\' );
		objMsgContent.setAttribute(\'class\', \'objMsgPopupContent objMsgShadowTextGrey\' );
		
		this.setValueObjMsg();
	}
	
	this.popup = function( )
	{
		
	}
	
	this.setValueObjMsg = function( )
	{
		
// 		alert (\'ok\');
		if ( usrMessageTitle != "") objMsgHeader.innerHTML = usrMessageTitle;
		if ( usrMessageDsc != "") objMsgContent.innerHTML = usrMessageDsc;
		
		if ( usrMessageLabelJS != "") objMsgButton.setAttribute(\'value\', usrMessageLabelJS );		
		if ( usrMessageFuncJS != "") objMsgButton.setAttribute(\'onClick\', usrMessageFuncJS );
		
		if ( usrMessageLabelJS2 != "") objMsgButton2.setAttribute(\'value\', usrMessageLabelJS2 );
		if ( usrMessageFuncJS2 != "") objMsgButton2.setAttribute(\'onClick\', usrMessageFuncJS2 );
		
		if (usrMessageLabelJS2 == "" && usrMessageLabelJS == "") objMsgButton2.setAttribute(\'style\', \'display:none\' );
		else objMsgButton2.setAttribute(\'style\', \'display:inline\' );

		$("#objPopupMsg").fadeIn("fast");
	}
	
	this.resetValueObjMsg = function( )
	{
		usrMessageTitle = "";
		usrMessageDsc = "";
		usrMessageLabelJS = "";
		usrMessageFuncJS = "";
		usrMessageLabelJS2 = "";
		usrMessageFuncJS2 = "";
	}
}

function closePopupObj()
{
	$("#objPopupMsg").fadeOut("slow");
}

function closeWindowPopupObj()
{
	window.close();
}

'; ?>


/* ]]> */
</script>
